projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d01f234
)
* sound.c (wav_play): Initialize a variable to 0, to prevent undefined behavior.
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 18 Mar 2011 06:42:43 +0000
(23:42 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 18 Mar 2011 06:42:43 +0000
(23:42 -0700)
src/ChangeLog
patch
|
blob
|
history
src/sound.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index b35cae140946a47caafe3e6685b5330bebfaba22..69aaa359887f7b408ea6bf65dfed7ae4b97ab9e0 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-3,6
+3,7
@@
* sound.c (wav_play, au_play, Fplay_sound_internal):
Fix pointer signedness.
(alsa_choose_format): Remove unused local var.
+ (wav_play): Initialize a variable to 0, to prevent undefined behavior.
* region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
diff --git
a/src/sound.c
b/src/sound.c
index c886c8c40b1701546922702a0a182f81745605dd..a2fe7ccc8ce9df6e7c88bfdc3602fd76c7e0ba28 100644
(file)
--- a/
src/sound.c
+++ b/
src/sound.c
@@
-600,7
+600,7
@@
wav_play (struct sound *s, struct sound_device *sd)
else
{
char *buffer;
- int nbytes;
+ int nbytes
= 0
;
int blksize = sd->period_size ? sd->period_size (sd) : 2048;
int data_left = header->data_length;